package com.hr;

import java.util.ArrayList;
import java.util.List;

public class CheckResult {
	public int getDutyMinutes() {
		return dutyMinutes;
	}
	public void setDutyMinutes(int dutyMinutes) {
		this.dutyMinutes = dutyMinutes;
	}
	public List<RealOtItem> getRealOtItems() {
		return realOtItems;
	}
	public void setRealOtItems(List<RealOtItem> realOtItems) {
		this.realOtItems = realOtItems;
	}
	public List<SalaryTicketLateItem> getLateItems() {
		return lateItems;
	}
	public void setLateItems(List<SalaryTicketLateItem> lateItems) {
		this.lateItems = lateItems;
	}
	public List<SalaryTicketLeaveEarlyItem> getLeaveEarlyItems() {
		return leaveEarlyItems;
	}
	public void setLeaveEarlyItems(List<SalaryTicketLeaveEarlyItem> leaveEarlyItems) {
		this.leaveEarlyItems = leaveEarlyItems;
	}
	public List<PunchInOut> getPunchIos() {
		return punchIos;
	}
	public void setPunchIos(List<PunchInOut> punchIos) {
		this.punchIos = punchIos;
	}
	
	public boolean isAbsentDay() {
		return absentDay;
	}
	public void setAbsentDay(boolean absentDay) {
		this.absentDay = absentDay;
	}
	public List<RealOtItem> safeRealOtItems() {
		if (realOtItems == null) {
			realOtItems = new ArrayList<RealOtItem>();
		}
		return realOtItems;
	}
	public List<SalaryTicketLateItem> safeLateItems() {
		if (lateItems == null) {
			lateItems = new ArrayList<SalaryTicketLateItem>();
		}
		return lateItems;
	}
	public List<SalaryTicketLeaveEarlyItem> safeLeaveEarlyItems() {
		if (leaveEarlyItems == null) {
			leaveEarlyItems = new ArrayList<SalaryTicketLeaveEarlyItem>();
		}
		return leaveEarlyItems;
	}
	public List<PunchInOut> safePunchIos() {
		if (punchIos == null) {
			punchIos = new ArrayList<PunchInOut>();
		}
		return punchIos;
	}
	
	public void addDutyMinutes(int dutyMinutes) {
		this.dutyMinutes += dutyMinutes;
	}
	
	private boolean absentDay;
	private int dutyMinutes;
	private List<RealOtItem> realOtItems;
	private List<SalaryTicketLateItem> lateItems;
	private List<SalaryTicketLeaveEarlyItem> leaveEarlyItems;
	private List<PunchInOut> punchIos;
}